package com.cg.design.graphicdesignpattern.interpreter.language;

/**
 * 生成基本命令的接口，FactoryMethod模式中的Create角色
 *
 * @program: LeetCode->ExecutorFactory
 * @author: cg
 * @create: 2022-04-06 09:31
 **/
public interface ExecutorFactory {

    /**
     * 创建执行者的API
     *
     * @param name
     * @return
     */
    public abstract Executor createExecutor(String name);

}
